import { getReq, postReq } from '@U/common'

// 获取结算确认函
export const getConfirmationLetter = (params = {}) => getReq('/api/channel-agent/bill-manage/pre-sign', params)

// 获取智客绑定企业票务管理列表
export const getTicketTotalList = () => getReq('/api/channel-agent/bill-manage/list')

// 获取收稻工作室按月票务统计
export const getcurrentStudioList = (params = {}) => getReq('/api/channel-agent/bill-manage/studio-month-list', params)

// 获取合作企业按月票务统计
export const getcurrentEnterpriseList = (params = {}) => getReq('/api/channel-agent/bill-manage/third-enterprise-month-list', params)

// 获取其他企业 账单明细
export const getEnterpriseDetail = (params = {}) => getReq('/api/channel-agent/bill-manage/third-enterprise-group-detail', params)

// 获取其他企业 业务明细
export const getEnterpriseServiceDetail = (params = {}) => getReq('/api/channel-agent/bill-manage/third-enterprise-content-detail', params)

// 发票验真
export const verifyTicket = (params = {}) => postReq('/api/channel-agent/bill-manage/upload-invoice', params)

// 上传发票
export const uploadTicket = (params = {}) => postReq('/api/channel-agent/bill-manage/save-invoice', params)
